package com.easyOrder.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeviceVersionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public DeviceVersionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDeviceIdIsNull() {
            addCriterion("device_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNotNull() {
            addCriterion("device_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdEqualTo(String value) {
            addCriterion("device_id =", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotEqualTo(String value) {
            addCriterion("device_id <>", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThan(String value) {
            addCriterion("device_id >", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThanOrEqualTo(String value) {
            addCriterion("device_id >=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThan(String value) {
            addCriterion("device_id <", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThanOrEqualTo(String value) {
            addCriterion("device_id <=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLike(String value) {
            addCriterion("device_id like", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotLike(String value) {
            addCriterion("device_id not like", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIn(List<String> values) {
            addCriterion("device_id in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotIn(List<String> values) {
            addCriterion("device_id not in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdBetween(String value1, String value2) {
            addCriterion("device_id between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotBetween(String value1, String value2) {
            addCriterion("device_id not between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andVerCodeIsNull() {
            addCriterion("ver_code is null");
            return (Criteria) this;
        }

        public Criteria andVerCodeIsNotNull() {
            addCriterion("ver_code is not null");
            return (Criteria) this;
        }

        public Criteria andVerCodeEqualTo(String value) {
            addCriterion("ver_code =", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeNotEqualTo(String value) {
            addCriterion("ver_code <>", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeGreaterThan(String value) {
            addCriterion("ver_code >", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ver_code >=", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeLessThan(String value) {
            addCriterion("ver_code <", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeLessThanOrEqualTo(String value) {
            addCriterion("ver_code <=", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeLike(String value) {
            addCriterion("ver_code like", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeNotLike(String value) {
            addCriterion("ver_code not like", value, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeIn(List<String> values) {
            addCriterion("ver_code in", values, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeNotIn(List<String> values) {
            addCriterion("ver_code not in", values, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeBetween(String value1, String value2) {
            addCriterion("ver_code between", value1, value2, "verCode");
            return (Criteria) this;
        }

        public Criteria andVerCodeNotBetween(String value1, String value2) {
            addCriterion("ver_code not between", value1, value2, "verCode");
            return (Criteria) this;
        }

        public Criteria andBranchIdIsNull() {
            addCriterion("branch_id is null");
            return (Criteria) this;
        }

        public Criteria andBranchIdIsNotNull() {
            addCriterion("branch_id is not null");
            return (Criteria) this;
        }

        public Criteria andBranchIdEqualTo(Long value) {
            addCriterion("branch_id =", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotEqualTo(Long value) {
            addCriterion("branch_id <>", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdGreaterThan(Long value) {
            addCriterion("branch_id >", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdGreaterThanOrEqualTo(Long value) {
            addCriterion("branch_id >=", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdLessThan(Long value) {
            addCriterion("branch_id <", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdLessThanOrEqualTo(Long value) {
            addCriterion("branch_id <=", value, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdIn(List<Long> values) {
            addCriterion("branch_id in", values, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotIn(List<Long> values) {
            addCriterion("branch_id not in", values, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdBetween(Long value1, Long value2) {
            addCriterion("branch_id between", value1, value2, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchIdNotBetween(Long value1, Long value2) {
            addCriterion("branch_id not between", value1, value2, "branchId");
            return (Criteria) this;
        }

        public Criteria andBranchNameIsNull() {
            addCriterion("branch_name is null");
            return (Criteria) this;
        }

        public Criteria andBranchNameIsNotNull() {
            addCriterion("branch_name is not null");
            return (Criteria) this;
        }

        public Criteria andBranchNameEqualTo(String value) {
            addCriterion("branch_name =", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameNotEqualTo(String value) {
            addCriterion("branch_name <>", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameGreaterThan(String value) {
            addCriterion("branch_name >", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameGreaterThanOrEqualTo(String value) {
            addCriterion("branch_name >=", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameLessThan(String value) {
            addCriterion("branch_name <", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameLessThanOrEqualTo(String value) {
            addCriterion("branch_name <=", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameLike(String value) {
            addCriterion("branch_name like", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameNotLike(String value) {
            addCriterion("branch_name not like", value, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameIn(List<String> values) {
            addCriterion("branch_name in", values, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameNotIn(List<String> values) {
            addCriterion("branch_name not in", values, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameBetween(String value1, String value2) {
            addCriterion("branch_name between", value1, value2, "branchName");
            return (Criteria) this;
        }

        public Criteria andBranchNameNotBetween(String value1, String value2) {
            addCriterion("branch_name not between", value1, value2, "branchName");
            return (Criteria) this;
        }

        public Criteria andLoginCodeIsNull() {
            addCriterion("login_code is null");
            return (Criteria) this;
        }

        public Criteria andLoginCodeIsNotNull() {
            addCriterion("login_code is not null");
            return (Criteria) this;
        }

        public Criteria andLoginCodeEqualTo(String value) {
            addCriterion("login_code =", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeNotEqualTo(String value) {
            addCriterion("login_code <>", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeGreaterThan(String value) {
            addCriterion("login_code >", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeGreaterThanOrEqualTo(String value) {
            addCriterion("login_code >=", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeLessThan(String value) {
            addCriterion("login_code <", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeLessThanOrEqualTo(String value) {
            addCriterion("login_code <=", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeLike(String value) {
            addCriterion("login_code like", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeNotLike(String value) {
            addCriterion("login_code not like", value, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeIn(List<String> values) {
            addCriterion("login_code in", values, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeNotIn(List<String> values) {
            addCriterion("login_code not in", values, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeBetween(String value1, String value2) {
            addCriterion("login_code between", value1, value2, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLoginCodeNotBetween(String value1, String value2) {
            addCriterion("login_code not between", value1, value2, "loginCode");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateIsNull() {
            addCriterion("last_request_date is null");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateIsNotNull() {
            addCriterion("last_request_date is not null");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateEqualTo(Date value) {
            addCriterion("last_request_date =", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateNotEqualTo(Date value) {
            addCriterion("last_request_date <>", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateGreaterThan(Date value) {
            addCriterion("last_request_date >", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateGreaterThanOrEqualTo(Date value) {
            addCriterion("last_request_date >=", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateLessThan(Date value) {
            addCriterion("last_request_date <", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateLessThanOrEqualTo(Date value) {
            addCriterion("last_request_date <=", value, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateIn(List<Date> values) {
            addCriterion("last_request_date in", values, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateNotIn(List<Date> values) {
            addCriterion("last_request_date not in", values, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateBetween(Date value1, Date value2) {
            addCriterion("last_request_date between", value1, value2, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andLastRequestDateNotBetween(Date value1, Date value2) {
            addCriterion("last_request_date not between", value1, value2, "lastRequestDate");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdIsNull() {
            addCriterion("vendor_device_id is null");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdIsNotNull() {
            addCriterion("vendor_device_id is not null");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdEqualTo(String value) {
            addCriterion("vendor_device_id =", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdNotEqualTo(String value) {
            addCriterion("vendor_device_id <>", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdGreaterThan(String value) {
            addCriterion("vendor_device_id >", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdGreaterThanOrEqualTo(String value) {
            addCriterion("vendor_device_id >=", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdLessThan(String value) {
            addCriterion("vendor_device_id <", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdLessThanOrEqualTo(String value) {
            addCriterion("vendor_device_id <=", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdLike(String value) {
            addCriterion("vendor_device_id like", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdNotLike(String value) {
            addCriterion("vendor_device_id not like", value, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdIn(List<String> values) {
            addCriterion("vendor_device_id in", values, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdNotIn(List<String> values) {
            addCriterion("vendor_device_id not in", values, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdBetween(String value1, String value2) {
            addCriterion("vendor_device_id between", value1, value2, "vendorDeviceId");
            return (Criteria) this;
        }

        public Criteria andVendorDeviceIdNotBetween(String value1, String value2) {
            addCriterion("vendor_device_id not between", value1, value2, "vendorDeviceId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}